FROM golang:1.20.6-alpine

COPY . /workdir
WORKDIR /workdir

RUN go env -w GOPROXY=https://goproxy.cn,direct
RUN go build -o ttbot

ENTRYPOINT ["./ttbot"]